package com.sunnuwell.demo.common.exception;

/**
* @Description: 自定义统一异常处理 
* @Param:  
* @return:  
* @Author: Mr.Lv 
* @Date: 2019/3/26 
*/ 
public class AdException extends Exception {

    private Integer code;
    private String message;

    public AdException(Integer code,String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
